package cn.tedu.luban.demand.main.rpc;


import cn.tedu.luban.demand.api.DemandApi;
import cn.tedu.luban.demand.main.service.DemandFrontService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DemandApiImpl implements DemandApi {
    @Autowired
    private DemandFrontService demandFrontService;
    @Override
    public Boolean grabOrder(String requestOrderNo) {
        return demandFrontService.grabOrder(requestOrderNo);
    }

    @Override
    public Boolean returnOrder(String requestOrderNo) {
        return demandFrontService.returnOrder(requestOrderNo);
    }
}
